package org.rendao.utils;

import java.lang.reflect.Field;

public class ReflectionUtils {

	@SuppressWarnings("rawtypes")
	public static boolean hasProperty(Class clazz, String propertyName) {
		Field[] fields = clazz.getDeclaredFields();
		for(Field field : fields) {
			String fieldName = field.getName();
			if(fieldName.equals(propertyName)) {
				return true;
			}
		}
		return false;
	}
}
